package com.learn.abstractfactory;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: ElfKingdomFactory </p>
 *
 * ElfKingdomFactory concrete factory.
 */
public class ElfKingdomFactory implements KingdomFactory {
    @Override
    public Army createArmy() {
        return new ElfArmy();
    }

    @Override
    public Castle createCastle() {
        return new OrcCastle();
    }

    @Override
    public King createKing() {
        return new OrcKing();
    }
}
